package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author Atguigu
 * @since 2024-04-15
 */
public interface DictService extends IService<Dict> {

    String getNameByDictCodeAndValue(String dictCode,Integer value);
    Boolean importDict(MultipartFile file);

    void exportDict(HttpServletResponse response);

    List<Dict> dictsByParentId(Long id);
    Boolean hasChildren(Long id);


    void add(Dict dict);

    List<Dict> listByCode(String code);
}
